package com.seezoon.admin.modules.sys.service;

import com.seezoon.admin.framework.service.IBaseService;
import com.seezoon.dao.modules.sys.entity.SysUser;
import org.springframework.transaction.annotation.Transactional;

import javax.validation.constraints.NotEmpty;

/**
 * @author 黎小荣
 * @since 2023/3/22
 */
public interface ISysUserService extends IBaseService<SysUser> {
    SysUser findByUsername(String username);

    @Transactional(readOnly = true)
    SysUser findByOpenId(@NotEmpty String openId);

    @Transactional(readOnly = true)
    SysUser findByMobile(@NotEmpty String mobile);
}
